<div class="main">
  <div class="main-header">
    <div class="pa-icon-div pull-left fs-14">
      <i class="iconfont icon-shouye fs-14 icon-vertical-top"></i>
      <span class="fs-vertical-middle">首页>
        <span class="fs-theme-color">项目公告</span>
      </span>
    </div>
    <go-back></go-back>
  </div>
  <div class="main-content">
    <div class="search-info">
      <div class="container-header fs-16">
        <span>项目公告</span>
      </div>
      <form class="base-info">
        <div class="base-info-item">
          <div class="pa-form-control">
            <label>公告标题：</label>
            <input type="text" class="pa-form-control-input"
              ng-model="vm.mapParams.title">
          </div>
          <div class="pa-form-control">
            <label>发布时间：</label>
            <input type="text" class="pa-form-control-input date-picker"
              data-ng-datepicker
              ng-model="vm.mapParams.startTime">
            <label class="pa-form-zhi">至</label>
            <input type="text" class="pa-form-control-input date-picker"
              data-ng-datepicker
              ng-model="vm.mapParams.endTime">
          </div>
          <div class="pa-form-control pa-form-control-btn"
            style="width: 100%;text-align: right;">
            <button class="pa-btn pa-sw-btn" type="button"
              ng-click="vm.$paginationQuery()">搜索</button>
            <button class="pa-btn pa-sw-btn reset-btn" type="reset"
              ng-click="vm.$reset()">重置</button>
          </div>
        </div>
      </form>
    </div>
    <div class="pa-operate-fr fs-theme-color" style="padding-left: 10px;"
      authorization-btn="api/v1/notice/add"
      ui-sref="addNotice">
      <i class="iconfont icon-fabugonggao icon-middle"></i>
      <span>发布公告</span>
    </div>
    <pa-table>
      <table class="pa-table">
        <thead>
          <tr>
            <th>公告标题</th>
            <th>发布人</th>
            <th class="sorting"
              ng-class="{'sorting-desc': vm.mapParams.sortType == 2,
              'sorting-asc': vm.mapParams.sortType == 1}"
              ng-click="vm.$toggleOrder('created_time')">发布时间</th>
            <th class="operate-three">操作</th>
          </tr>
        </thead>
        <tbody>
          <tr ng-repeat="item in vm.noticeListData">
            <!-- <td>{{item.unitName}}</td> -->
            <td>{{item.title}}</td>
            <td>{{item.creatorName}}</td>
            <td>{{item.createdTime | date:"yyyy-MM-dd"}}</td>
            <td>
              <div class="operate-del" ui-sref="noticeDetail({id: item.id})">
                <i class="iconfont icon-jilu3 detail-color fs-12"></i>
                <span>详情</span>
              </div>
              <div class="operate-del" ng-click="vm.$delete(item.id)">
                <i class="iconfont icon-shanchu trash-color fs-12"></i>
                <span>删除</span>
              </div>
            </td>
          </tr>
        </tbody>
      </table>
    </pa-table>
  </div>
</div>
